define(['jquery', 'bootstrap', 'backend', 'table', 'form','editable'], function ($, undefined, Backend, Table, Form, undefined) {
    var Projectbase = {
        api:{
            tablebindevent: function(table) {

            },
            formbindevent: function(form) {
                $('input:radio[name="row[suspend_type]"]').change(function() {
                if(this.value == 0)
                {
                    $("#suspend_memo").val('')
                    $("form[role=form]").validator("setField", {
                         "row[suspend_memo]": null,
                    });
                }
                else{
                    $("form[role=form]").validator("setField", {
                        "row[suspend_memo]": "required;",
                    });
                }

                    // var checkValue = $('input:radio[name="suspend_type"]:checked').val();
                    // alert(checkValue);

            });
            },
            formatter: {

            }

        }
    };
    return Projectbase;
})
